package webgamemaker.FightCanvas;

import java.util.HashMap;

import webgamemaker.Common.Tile;

public class Background implements Drawable
{
	public Tile tile;
	public HashMap<String, Object> param;
	
	public Background(Tile tile)
	{
		this.tile = tile;
		param = new HashMap<String, Object>();
	}
	
	public void draw(FightCanvas canvas)
	{
		param.put("context", canvas);
		param.put("x", 0);
		param.put("y", 0);
		param.put("width", canvas.width);
		param.put("height", canvas.height);
		tile.draw(param);
	}
}
